package org.example.Swing.studentView;

import javax.swing.table.DefaultTableModel;
import java.util.Vector;

public class MainViewTableModel extends DefaultTableModel {
    private static final MainViewTableModel mainViewTableModel = new MainViewTableModel();
    static Vector<String> colums = new Vector<>();

    static {
        colums.addElement("编号");
        colums.addElement("姓名");
        colums.addElement("学号");
        colums.addElement("家乡");
        colums.addElement("语文");
        colums.addElement("数学");
        colums.addElement("英语");
        colums.addElement("总分");
    }

    private MainViewTableModel() {
        super(null, colums);
    }

    public static Vector<String> getColums() {
        return colums;
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        return false;
    }
}